//
//  XCHUDCustomView.m
//  CopyAppleMap
//
//  Created by 大江山岚 on 2020/7/1.
//  Copyright © 2020 大江山岚. All rights reserved.
//

#import "XCHUDCustomInfoView.h"
#import <Masonry/Masonry.h>

@implementation XCHUDCustomInfoView

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self initializationUI];
    }
    return self;
}
- (void)initializationUI
{
    self.info_label = [[UILabel alloc] init];
    self.info_label.font = [UIFont systemFontOfSize:14];
    self.info_label.textAlignment = NSTextAlignmentCenter;
    self.info_label.numberOfLines = 0;
    [self addSubview:self.info_label];
    [self.info_label setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    [self setAutoLayout];
}
- (void)setAutoLayout
{
    [self.info_label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).offset(8);
        make.left.equalTo(self.mas_left).offset(8);
        make.bottom.equalTo(self.mas_bottom).offset(-8);
        make.right.equalTo(self.mas_right).offset(-8);
    }];
}

@end
